package DesignPattern.Behavior.Mediator;

public class Client {
    public static void main(String[] args) {
        MediatorStructure ms = new MediatorStructure();
        Tenant tenant = new Tenant("小明", ms);
        HouseOwner houseOwner = new HouseOwner("包租婆", ms);

        ms.setTenant(tenant);
        ms.setHouseOwner(houseOwner);

        tenant.constract("我要租三室一厅的房子！！！");
        houseOwner.constract("没有，滚！！！");
    }
}
